package me.zhengjie.modules.website.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import me.zhengjie.base.BaseEntity;

import javax.persistence.*;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
 * 档案信息实体类
 *
 * @author system
 * @since 2024-11-05 23:38:48
 */
@Entity
@Data
@Table(name = "ws_archive_information")
@ApiModel(value = "ArchiveInformation", description = "档案信息表，用于存储档案相关内容")
public class ArchiveInformation extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键 ID
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    @ApiModelProperty(value = "档案记录唯一标识", example = "1", required = true)
    private Long id;

    /**
     * 档案编号
     */
    @Column(name = "archive_number")
    @ExcelProperty("档号")
    @ApiModelProperty(value = "档号", example = "ARCH-56789")
    private String archiveNumber;

    /**
     * 标题
     */
    @Column(name = "title")
    @ExcelProperty("题名")
    @ApiModelProperty(value = "题名", example = "2024年项目文件")
    private String title;


    /**
     * 成文时间
     */
    @Column(name = "document_time")
    @ExcelProperty("成文时间")
    @ApiModelProperty(value = "成文时间", example = "2024-12-10")
    private String documentTime;
}
